//
//  MZFormSheetBackgroundWindowViewController+InterfaceOrientations.m
//  wozhua
//
//  Created by 王洋 on 16/3/24.
//  Copyright © 2016年 王洋. All rights reserved.
//

#import "MZFormSheetBackgroundWindowViewController+InterfaceOrientations.h"
#import "MZFormSheetBackgroundWindow.h"

@implementation MZFormSheetBackgroundWindowViewController (InterfaceOrientations)

- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
    if ([self.view.superview isKindOfClass:[MZFormSheetBackgroundWindow class]]) {
        return [(MZFormSheetBackgroundWindow *)self.view.superview supportedInterfaceOrientations];
    }
    return UIInterfaceOrientationMaskPortrait;
}

@end
